<?php
namespace Home\Controller;
use Think\Controller;
use Think\Page;

/*
* 特色服务 & 优惠精选
*/
class ArticleController extends CommonController {
  private $article_model;

  public function _initialize(){
    $this->article_model = M('Article');
  }



  //优惠精选文章详细
  public function show(){
  	$this->article_model->where('id='.I('get.id',0))->setInc('hits');
  	
    $article = $this->article_model->find(I('get.id',0));
    
    $this->assign('article',$article);
    $this->display('Article/post');
  }


}